package org.apache.cordova;

import android.app.Application;

import com.alibaba.security.rp.RPSDK;
import com.umeng.analytics.MobclickAgent;
import com.umeng.commonsdk.UMConfigure;

public class MainApplication extends Application {

    private static MainApplication content = null;
    public static MainApplication getContent() {
        return content;
    }

    @Override
    public void onCreate() {
        content = this;
        RPSDK.initialize(this);   //初始化实人认证sdk
        //参数2:【友盟+】 AppKey
        //* 参数3:【友盟+】 Channel
        //两个渠道
        //sc002          5d5a81773fc1950ced000216
        //sc003             5d5a81893fc195e6460006f1
//        UMConfigure.init(this, "5d5a81773fc1950ced000216", "sc002", UMConfigure.DEVICE_TYPE_PHONE,"");
//        UMConfigure.init(this, "5d5a81893fc195e6460006f1", "sc003", UMConfigure.DEVICE_TYPE_PHONE,"");
        UMConfigure.init(this, "", "", UMConfigure.DEVICE_TYPE_PHONE,"");

        MobclickAgent.setPageCollectionMode(MobclickAgent.PageMode.AUTO);

        // 打开统计SDK调试模式
//        UMConfigure.setLogEnabled(true);

        super.onCreate();


    }

}
